package org.jeecg.modules.operations.assistant.vehicle.job;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.util.DateUtils;
import org.jeecg.modules.operations.assistant.vehicle.util.ApiServiceUtil;
import org.jeecg.modules.operations.assistant.work.entity.CustomerInfo;
import org.jeecg.modules.operations.assistant.work.service.ICustomerInfoService;
import org.jeecg.modules.operations.assistant.xcbd.entity.XcbdContractConfig;
import org.jeecg.modules.operations.assistant.xcbd.mapper.XcbdContractConfigMapper;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;

@Slf4j
public class ContractConfigJob implements Job {
    @Autowired
    private XcbdContractConfigMapper contractConfigMapper;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info(String.format(" Jeecg-Boot 发送消息任务 ContractConfigJob !  时间:" + DateUtils.getTimestamp()));
        XcbdContractConfig contractConfig = contractConfigMapper.selectById("1873768051529637889");
        contractConfig.setSequenceId(0); // 重置
        contractConfigMapper.updateById(contractConfig);
    }
}
